package com.boss.controller;

import com.alibaba.fastjson.JSON;
import com.boss.entity.WorkExperience;
import com.boss.service.WorkExperienceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
//职位工作经验
@RestController
@RequestMapping("/workExperience")
public class WorkExperienceController {
    @Autowired
    private WorkExperienceService workExperienceService;
    @RequestMapping("/getAllWorkExperience")
    public String getAllWorkExperience(){
        List<WorkExperience> list1 = workExperienceService.getAllWorkExperience1();
        String json = JSON.toJSONString(list1);
        return json;
    }
}
